package cn.hj.spring.springboot;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class MyConfig {
    @Bean
    @Primary
    public int getInt(){
        return 100;
    }

    @Bean
    public int getInt2(){
        return 10;
    }
}
